package com.yunxin.download.server.infra.repository;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author zero°
 * @since 2023-06-16
 */
@Repository
public interface DownloadDao {

    /**
     * 导出
     * @param params params
     *
     * @return  List<Map<String, Object>>
     */
    List<Map<String, Object>> download(Map<String, Object> params);

    Long getUserApplyStatisticsCount(@Param("merchantId")Long merchantId,
                                     @Param("start") Date start,
                                     @Param("end") Date end);

    List<String> allTagList(@Param("customerId")Long customerId);
}
